//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['Sleep Token','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Wednesday','5/8/2024','8:00 PM','6219322','Sleep-Token-5-8-2024'],['Nate Bargatze','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Thursday','5/9/2024','7:00 PM','6030470','Nate-Bargatze-5-9-2024'],['Amon Amarth, Cannibal Corpse, Obituary & Frozen Soul','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Thursday','5/16/2024','6:30 PM','6131602','Amon-Amarth--Cannibal-Corpse--Obituary---Frozen-Soul-5-16-2024'],['Noah Kahan','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Monday','5/20/2024','8:00 PM','5965929','Noah-Kahan-5-20-2024'],['Noah Kahan','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Wednesday','5/22/2024','8:00 PM','5948820','Noah-Kahan-5-22-2024'],['Lauren Daigle','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Friday','6/7/2024','7:00 PM','6053727','Lauren-Daigle-6-7-2024'],['Khruangbin','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Wednesday','6/12/2024','8:00 PM','6279964','Khruangbin-6-12-2024'],['Sebastian Maniscalco','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Saturday','7/13/2024','7:00 PM','6115233','Sebastian-Maniscalco-7-13-2024'],['Widespread Panic - 3 Day Pass','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Thursday','7/25/2024','TBD','6319457','Widespread-Panic---3-Day-Pass-7-25-2024'],['Widespread Panic','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Thursday','7/25/2024','8:00 PM','6319458','Widespread-Panic-7-25-2024'],['Widespread Panic','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Friday','7/26/2024','8:00 PM','6319459','Widespread-Panic-7-26-2024'],['Widespread Panic','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Saturday','7/27/2024','8:00 PM','6319461','Widespread-Panic-7-27-2024'],['Tom Segura','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Wednesday','8/7/2024','7:30 PM','6249112','Tom-Segura-8-7-2024'],['Lindsey Stirling','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Thursday','8/8/2024','8:00 PM','6327927','Lindsey-Stirling-8-8-2024'],['King Gizzard and The Lizard Wizard','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Friday','8/30/2024','8:00 PM','6066167','King-Gizzard-and-The-Lizard-Wizard-8-30-2024'],['Ray Lamontagne & Gregory Alan Isakov','ExploreAsheville.com Arena at Harrah's Cherokee Center','Asheville, NC','Wednesday','10/2/2024','7:00 PM','6389705','Ray-Lamontagne---Gregory-Alan-Isakov-10-2-2024']],'US Cellular Center Asheville','http://www.ticketnetwork.com/ticket/US-Cellular-Center-Asheville-events.aspx');